package com.example.pattern.builder;

/**
 * 具体建造者
 *
 * @author FM_南风
 * @date 2024/6/23
 */
public class ConcreteBuilder implements Builder {
 private Product product = new Product();
 @Override
 public void buildProductA() {
  product.setProductA("产品A");
 }

 @Override
 public void buildProductB() {
  product.setProductB ("产品B");
 }

 @Override
 public Product getResult() {
  return product;
 }
}
